package com.etc.pojo;

import org.springframework.stereotype.Component;

@Component
public class Video {

    private int videoId;
    private String videoIntroduce;
    private int videoState;
    private String videoImg;
    private String videoPath;
    private int publishState;
    private String courseName;
    private int targetId;
    private int partId;
    private int degreeId;
    private int apparatusId;
    private User user;

    public int getVideoId() {
        return videoId;
    }

    public void setVideoId(int videoId) {
        this.videoId = videoId;
    }

    public String getVideoIntroduce() {
        return videoIntroduce;
    }

    public void setVideoIntroduce(String videoIntroduce) {
        this.videoIntroduce = videoIntroduce;
    }

    public int getVideoState() {
        return videoState;
    }

    public void setVideoState(int videoState) {
        this.videoState = videoState;
    }

    public String getVideoImg() {
        return videoImg;
    }

    public void setVideoImg(String videoImg) {
        this.videoImg = videoImg;
    }

    public String getVideoPath() {
        return videoPath;
    }

    public void setVideoPath(String videoPath) {
        this.videoPath = videoPath;
    }

    public int getPublishState() {
        return publishState;
    }

    public void setPublishState(int publishState) {
        this.publishState = publishState;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public int getTargetId() {
        return targetId;
    }

    public void setTargetId(int targetId) {
        this.targetId = targetId;
    }

    public int getPartId() {
        return partId;
    }

    public void setPartId(int partId) {
        this.partId = partId;
    }

    public int getDegreeId() {
        return degreeId;
    }

    public void setDegreeId(int degreeId) {
        this.degreeId = degreeId;
    }

    public int getApparatusId() {
        return apparatusId;
    }

    public void setApparatusId(int apparatusId) {
        this.apparatusId = apparatusId;
    }

    public Video() {
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public Video(int videoId, String videoIntroduce, int videoState, String videoImg, String videoPath, int publishState, String courseName, int targetId, int partId, int degreeId, int apparatusId) {
        this.videoId = videoId;
        this.videoIntroduce = videoIntroduce;
        this.videoState = videoState;
        this.videoImg = videoImg;
        this.videoPath = videoPath;
        this.publishState = publishState;
        this.courseName = courseName;
        this.targetId = targetId;
        this.partId = partId;
        this.degreeId = degreeId;
        this.apparatusId = apparatusId;
    }

    /**
     * 查询用户所有视频
     * @param videoId
     * @param videoIntroduce
     * @param videoImg
     * @param courseName
     */
    public Video(int videoId, String videoIntroduce, String videoImg, String courseName) {
        this.videoId = videoId;
        this.videoIntroduce = videoIntroduce;
        this.videoImg = videoImg;
        this.courseName = courseName;
    }

    public Video(int videoId) {
        this.videoId = videoId;
    }

    @Override
    public String toString() {
        return "Video{" +
                "videoId=" + videoId +
                ", videoIntroduce='" + videoIntroduce + '\'' +
                ", videoState=" + videoState +
                ", videoImg='" + videoImg + '\'' +
                ", videoPath='" + videoPath + '\'' +
                ", publishState=" + publishState +
                ", courseName='" + courseName + '\'' +
                ", targetId=" + targetId +
                ", partId=" + partId +
                ", degreeId=" + degreeId +
                ", apparatusId=" + apparatusId +
                ", user=" + user +
                '}';
    }

    public Video(int videoId, String videoIntroduce, String videoImg, String courseName, User user) {
        this.videoId = videoId;
        this.videoIntroduce = videoIntroduce;
        this.videoImg = videoImg;
        this.courseName = courseName;
        this.user = user;
    }

    public Video(int videoId, String videoIntroduce, int videoState, String videoImg, String videoPath, int publishState, String courseName, int targetId, int partId, int degreeId, int apparatusId, User user) {
        this.videoId = videoId;
        this.videoIntroduce = videoIntroduce;
        this.videoState = videoState;
        this.videoImg = videoImg;
        this.videoPath = videoPath;
        this.publishState = publishState;
        this.courseName = courseName;
        this.targetId = targetId;
        this.partId = partId;
        this.degreeId = degreeId;
        this.apparatusId = apparatusId;
        this.user = user;
    }


}
